package com.nowcoder.code.lcof;

import com.algorithm.model.TreeNode;

public class JZ55 {



    public int TreeDepth(TreeNode root) {
        if (root == null) {
            return 0;
        }
        return 1 + Math.max(TreeDepth(root.left), TreeDepth(root.right));
    }




}
